home *** CD-ROM | disk | FTP | other *** search
- * PROCEDURE Getmemo.PRG
- * Date....: November 1, 1985
- * Version.: dBASE III, The Developer's Release
- * Note(s).: Procedure to get a block of memo fields.
- * Called by Memorpt.PRG.
- *
- PARAMETERS width, next, yourfile, memofield
- PRIVATE ALL
- * ---Version 1.0 and 1.1 users,
- * ---delete the following line of code.
- SET MEMOWIDTH TO &width
- *
- SET CONSOLE OFF
- SET ALTERNATE TO Temp
- SET ALTERNATE ON
- next = 0
- * ---Write the next set of memo fields to the current block.
- DO WHILE next < 5 .AND. ( .NOT. EOF() )
- ? STR( RECNO(), 4 ), " ", &memofield
- SKIP
- next = next + 1
- ENDDO
- CLOSE ALTERNATE
- SET CONSOLE ON
- * ---Append the block of memo fields into database file.
- SELECT Memotemp
- ZAP
- APPEND FROM Temp SDF
- ERASE Temp.TXT
- * ---Version 1.0 and 1.1 users,
- * ---delete the following line of code.
- SET MEMOWIDTH TO 50
- *
- * ---Go to the first non-blank record in Memotemp.
- GO TOP
- DO WHILE LEN( TRIM( Recnum ) ) = 0
- SKIP
- ENDDO
- * ---Get the last record whose memo field is in this block.
- SELECT &yourfile
- lastrec = RECNO()
- SKIP - next
- RETURN
- * EOP Getmemo.PRG